import 'package:flutter_taotaoshipin/http/request/buy_drama_pay_request.dart';
import 'package:flutter_taotaoshipin/model/base_entity.dart';
import 'package:flutter_taotaoshipin/model/buy_drama_pay_entity.dart';
import 'package:hi_net/hi_net.dart';

class BuyDao {
  /// 剧集购买
  static Future<BaseEntity<BuyDramaPayEntity>> dramaPay(int dramaId) async {
    var request = BuyDramaPayRequest();
    request.add('drama_id', dramaId);
    var result = await HiNet.getInstance().fire(request);
    return BaseEntity<BuyDramaPayEntity>.fromJson(result);
  }
}
